MacBinary | 1993-02-14 | 1.5 KB | [TEXT/CCL2] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Feb 14 17:42:39 1993, modified Sun Feb 14 17:42:39 1993, creator Common Lisp 2, type ASCII, 875 bytes "place-armies.lisp" , at 0x3eb 463 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CCL2] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 70 6c 61 63 65 2d | 61 72 6d 69 65 73 2e 6c |..place-|armies.l|
|00000010| 69 73 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |isp.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 03 6b 00 | 00 01 cf a7 a4 7b 5f a7 |......k.|.....{_.|
|00000060| a4 7b 5f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{_.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1e db 00 00 |........|........|
|00000080| 3b 3b 3b 20 70 6c 61 63 | 65 2d 61 72 6d 69 65 73 |;;; plac|e-armies|
|00000090| 2e 6c 69 73 70 0d 3b 3b | 3b 0d 3b 3b 3b 20 43 4f |.lisp.;;|;.;;; CO|
|000000a0| 4e 51 55 45 53 54 20 41 | 49 20 50 52 4f 4a 45 43 |NQUEST A|I PROJEC|
|000000b0| 54 0d 3b 3b 3b 0d 3b 3b | 3b 20 57 61 73 68 69 6e |T.;;;.;;|; Washin|
|000000c0| 67 74 6f 6e 20 55 6e 69 | 76 65 72 73 69 74 79 20 |gton Uni|versity |
|000000d0| 43 6f 6d 70 75 74 65 72 | 20 53 63 69 65 6e 63 65 |Computer| Science|
|000000e0| 20 44 65 70 61 72 74 6d | 65 6e 74 0d 3b 3b 3b 20 | Departm|ent.;;; |
|000000f0| 43 6f 70 79 72 69 67 68 | 74 20 31 39 39 33 20 50 |Copyrigh|t 1993 P|
|00000100| 61 75 6c 20 4d 63 43 61 | 72 74 6e 65 79 2e 20 20 |aul McCa|rtney. |
|00000110| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000120| 76 65 64 2e 0d 3b 3b 3b | 0d 3b 3b 3b 20 41 55 54 |ved..;;;|.;;; AUT|
|00000130| 48 4f 52 3a 20 20 0d 3b | 3b 3b 0d 3b 3b 3b 20 54 |HOR: .;|;;.;;; T|
|00000140| 68 69 73 20 66 69 6c 65 | 20 69 73 20 61 20 70 6c |his file| is a pl|
|00000150| 61 79 65 72 27 73 20 70 | 6c 61 63 65 20 61 72 6d |ayer's p|lace arm|
|00000160| 69 65 73 20 6d 6f 64 75 | 6c 65 2c 20 63 6f 6e 74 |ies modu|le, cont|
|00000170| 61 69 6e 69 6e 67 20 63 | 6f 64 65 20 66 6f 72 20 |aining c|ode for |
|00000180| 64 65 74 65 72 6d 69 6e | 69 6e 67 0d 3b 3b 3b 20 |determin|ing.;;; |
|00000190| 77 68 65 72 65 20 61 20 | 70 6c 61 79 65 72 20 70 |where a |player p|
|000001a0| 6c 61 63 65 73 20 68 69 | 73 2f 68 65 72 20 61 72 |laces hi|s/her ar|
|000001b0| 6d 69 65 73 20 61 74 20 | 74 68 65 20 62 65 67 69 |mies at |the begi|
|000001c0| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 74 75 72 |nning of| the tur|
|000001d0| 6e 2e 0d 3b 3b 3b 0d 3b | 3b 3b 20 55 53 45 3a 0d |n..;;;.;|;; USE:.|
|000001e0| 3b 3b 3b 0d 3b 3b 3b 20 | 44 65 66 69 6e 65 20 74 |;;;.;;; |Define t|
|000001f0| 68 65 20 6d 65 74 68 6f | 64 20 63 61 6c 6c 65 64 |he metho|d called|
|00000200| 20 22 70 6c 61 63 65 2d | 61 72 6d 69 65 73 22 2e | "place-|armies".|
|00000210| 20 20 54 68 69 73 20 6d | 65 74 68 6f 64 20 77 69 | This m|ethod wi|
|00000220| 6c 6c 20 62 65 20 63 61 | 6c 6c 65 64 20 66 72 6f |ll be ca|lled fro|
|00000230| 6d 20 0d 3b 3b 3b 20 74 | 68 65 20 63 6f 6e 74 72 |m .;;; t|he contr|
|00000240| 6f 6c 20 6f 62 6a 65 63 | 74 20 61 73 20 6e 65 65 |ol objec|t as nee|
|00000250| 64 65 64 2e 0d 3b 3b 3b | 0d 3b 3b 3b 20 3e 3e 20 |ded..;;;|.;;; >> |
|00000260| 43 68 61 6e 67 65 20 61 | 6c 6c 20 6f 63 63 75 72 |Change a|ll occur|
|00000270| 72 65 6e 63 65 73 20 6f | 66 20 22 67 65 6e 65 72 |rences o|f "gener|
|00000280| 69 63 22 20 74 6f 20 61 | 20 75 6e 69 71 75 65 20 |ic" to a| unique |
|00000290| 69 64 65 6e 74 69 66 69 | 65 72 20 28 69 2e 65 2e |identifi|er (i.e.|
|000002a0| 20 79 6f 75 72 20 6c 6f | 67 69 6e 20 6e 61 6d 65 | your lo|gin name|
|000002b0| 29 0d 0d 28 69 6e 2d 70 | 61 63 6b 61 67 65 20 3a |)..(in-p|ackage :|
|000002c0| 67 65 6e 65 72 69 63 29 | 0d 0d 0d 3b 3b 3b 20 54 |generic)|...;;; T|
|000002d0| 6f 20 6f 76 65 72 72 69 | 64 65 20 74 68 65 20 64 |o overri|de the d|
|000002e0| 65 66 61 75 6c 74 20 22 | 62 61 73 69 63 2d 70 6c |efault "|basic-pl|
|000002f0| 61 79 65 72 22 20 62 65 | 68 61 76 69 6f 72 2c 20 |ayer" be|havior, |
|00000300| 72 65 70 6c 61 63 65 20 | 74 68 65 20 22 63 61 6c |replace |the "cal|
|00000310| 6c 2d 6e 65 78 74 2d 6d | 65 74 68 6f 64 22 0d 3b |l-next-m|ethod".;|
|00000320| 3b 3b 20 63 61 6c 6c 20 | 77 69 74 68 20 63 6f 64 |;; call |with cod|
|00000330| 65 20 70 6c 61 63 65 20 | 61 72 6d 69 65 73 2e 20 |e place |armies. |
|00000340| 20 54 68 69 73 20 6d 65 | 74 68 6f 64 20 73 68 6f | This me|thod sho|
|00000350| 75 6c 64 20 72 65 74 75 | 72 6e 3a 0d 3b 3b 3b 0d |uld retu|rn:.;;;.|
|00000360| 3b 3b 3b 20 20 20 20 20 | 28 3c 63 6f 75 6e 74 72 |;;; |(<countr|
|00000370| 79 3e 20 3c 61 72 6d 69 | 65 73 3e 29 0d 3b 3b 3b |y> <armi|es>).;;;|
|00000380| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 70 6c 61 63 |.(defmet|hod plac|
|00000390| 65 2d 61 72 6d 69 65 73 | 20 28 28 70 6c 61 79 65 |e-armies| ((playe|
|000003a0| 72 20 67 65 6e 65 72 69 | 63 2d 70 6c 61 79 65 72 |r generi|c-player|
|000003b0| 29 20 74 75 72 6e 20 6e | 2d 61 72 6d 69 65 73 29 |) turn n|-armies)|
|000003c0| 0d 20 20 28 63 61 6c 6c | 2d 6e 65 78 74 2d 6d 65 |. (call|-next-me|
|000003d0| 74 68 6f 64 20 70 6c 61 | 79 65 72 20 74 75 72 6e |thod pla|yer turn|
|000003e0| 20 6e 2d 61 72 6d 69 65 | 73 29 29 00 00 00 00 00 | n-armie|s)).....|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 7d | 00 00 00 7d 00 00 00 52 |.......}|...}...R|
|00000410| 65 20 74 68 65 20 22 63 | 61 6c 6c 2d 6e 65 78 74 |e the "c|all-next|
|00000420| 2d 6d 65 74 68 6f 64 22 | 0d 3b 3b 3b 20 63 61 6c |-method"|.;;; cal|
|00000430| 11 70 6c 61 63 65 2d 61 | 72 6d 69 65 73 2e 6c 69 |.place-a|rmies.li|
|00000440| 73 70 02 00 00 00 54 45 | 58 54 43 43 4c 32 01 00 |sp....TE|XTCCL2..|
|00000450| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 3c 00 00 |..TEXTCC|L2...<..|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 a7 0f 0d f5 00 00 | 03 6b 00 00 01 cf 28 3c |........|.k....(<|
|00000480| 61 74 74 61 63 6b 65 72 | 2d 63 6f 75 6e 74 72 79 |attacker|-country|
|00000490| 3e 20 3c 64 65 66 65 6e | 64 65 72 2d 63 6f 75 6e |> <defen|der-coun|
|000004a0| 74 72 79 3e 29 20 20 4f | 52 20 20 27 66 6f 72 74 |try>) O|R 'fort|
|000004b0| 69 66 79 0d 3b 3b 3b 0d | 28 64 65 66 6d 65 74 68 |ify.;;;.|(defmeth|
|000004c0| 6f 64 20 61 74 74 61 63 | 6b 20 28 28 70 6c 61 79 |od attac|k ((play|
|000004d0| 65 72 20 64 6d 72 32 2d | 70 6c 61 79 65 72 29 29 |er dmr2-|player))|
|000004e0| 0d 20 20 28 63 61 6c 6c | 2d 6e 65 78 74 2d 6d 65 |. (call|-next-me|
|000004f0| 74 68 6f 64 29 29 01 b8 | 00 38 db 00 90 03 70 db |thod))..|.8....p.|
|00000500| 00 00 00 1a 00 02 00 14 | 0c 01 00 04 09 00 01 00 |........|........|
|00000510| 00 00 02 00 02 32 01 00 | 02 4b 02 00 03 01 00 00 |.....2..|.K......|
|00000520| 00 0f 00 30 05 54 69 6d | 65 73 06 4d 6f 6e 61 63 |...0.Tim|es.Monac|
|00000530| 6f 00 00 00 48 00 09 4d | 6f 6e 61 63 6f 00 00 00 |o...H..M|onaco...|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 06 00 08 00 6a 00 35 01 |........|....j.5.|
|00000560| c6 02 53 00 6a 00 35 01 | c6 02 53 00 00 00 00 00 |..S.j.5.|..S.....|
|00000570| 00 03 61 00 00 03 61 00 | 00 00 6c 01 00 00 00 01 |..a...a.|..l.....|
|00000580| 00 00 00 01 7d 00 00 00 | 7d 00 00 00 52 00 23 d0 |....}...|}...R.#.|
|00000590| 40 07 b8 00 00 00 1c 00 | 52 00 01 46 52 45 44 00 |@.......|R..FRED.|
|000005a0| 01 00 12 4d 50 53 52 00 | 00 00 2a 00 02 ff ff 00 |...MPSR.|..*.....|
|000005b0| 00 00 00 00 00 00 00 00 | 03 ff ff 00 00 00 1e 00 |........|........|
|000005c0| 00 00 00 03 ed ff ff 00 | 00 00 31 00 24 c5 34 00 |........|..1.$.4.|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+